[INFO] cloning repository https://github.com/FabioBrugia/Lab05
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FabioBrugia/Lab05" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FLab05", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FLab05'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 28f3ec1192dcba91dd347c5cfc631c380c856eb0
[INFO] fixing FabioBrugia/Lab05 against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabioBrugia%2FLab05" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/FabioBrugia/Lab05
[INFO] finished tweaking git repo https://github.com/FabioBrugia/Lab05
[INFO] tweaked toml for git repo https://github.com/FabioBrugia/Lab05 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FabioBrugia/Lab05 on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FabioBrugia/Lab05 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d
[INFO] running `Command { std: "docker" "start" "1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking LAB05 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/FileSystem.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `nodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub type nodeRef = Rc<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to upper camel case: `NodeRef`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `weakNodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub type weakNodeRef = Weak<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `WeakNodeRef`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::FileSystem::FSItem::File`
[INFO] [stdout]    --> src/FileSystem.rs:357:9
[INFO] [stdout]     |
[INFO] [stdout] 357 |     use crate::FileSystem::FSItem::File;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/FileSystem.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `nodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:22:10
[INFO] [stdout]    |
[INFO] [stdout] 22 | pub type nodeRef = Rc<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^ help: convert the identifier to upper camel case: `NodeRef`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `weakNodeRef` should have an upper camel case name
[INFO] [stdout]   --> src/FileSystem.rs:23:10
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub type weakNodeRef = Weak<RefCell<FSnode>>;
[INFO] [stdout]    |          ^^^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `WeakNodeRef`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> src/FileSystem.rs:139:29
[INFO] [stdout]     |
[INFO] [stdout] 139 |                 let entry = entry?;
[INFO] [stdout]     |                             ^^^^^^ the `?` operator cannot be applied to type `ReadDir`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the nightly-only, unstable trait `Try` is not implemented for `ReadDir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try`
[INFO] [stdout]    --> src/FileSystem.rs:139:29
[INFO] [stdout]     |
[INFO] [stdout] 139 |                 let entry = entry?;
[INFO] [stdout]     |                             ^^^^^^ the `?` operator cannot be applied to type `ReadDir`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the nightly-only, unstable trait `Try` is not implemented for `ReadDir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `chage_dir` found for mutable reference `&mut FileSystem::FileSystem` in the current scope
[INFO] [stdout]    --> src/FileSystem.rs:145:26
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.chage_dir(name.clone())?;
[INFO] [stdout]     |                          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `change_dir` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.change_dir(name.clone())?;
[INFO] [stdout]     |                             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(std::io::Error)` closure, found `FileSystemError`
[INFO] [stdout]    --> src/FileSystem.rs:151:69
[INFO] [stdout]     |
[INFO] [stdout] 151 |                     let target = fs::read_link(&entry_path).map_err(FileSystemError::DisckError)?;
[INFO] [stdout]     |                                                             ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnOnce(std::io::Error)` closure, found `FileSystemError`
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `FnOnce(std::io::Error)` is not implemented for `FileSystemError`
[INFO] [stdout]    --> src/FileSystem.rs:8:1
[INFO] [stdout]     |
[INFO] [stdout]   8 | enum FileSystemError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: required by a bound in `Result::<T, E>::map_err`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/result.rs:960:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `chage_dir` found for mutable reference `&mut FileSystem::FileSystem` in the current scope
[INFO] [stdout]    --> src/FileSystem.rs:145:26
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.chage_dir(name.clone())?;
[INFO] [stdout]     |                          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: there is a method `change_dir` with a similar name
[INFO] [stdout]     |
[INFO] [stdout] 145 |                     self.change_dir(name.clone())?;
[INFO] [stdout]     |                             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: expected a `FnOnce(std::io::Error)` closure, found `FileSystem::FileSystemError`
[INFO] [stdout]    --> src/FileSystem.rs:151:69
[INFO] [stdout]     |
[INFO] [stdout] 151 |                     let target = fs::read_link(&entry_path).map_err(FileSystemError::DisckError)?;
[INFO] [stdout]     |                                                             ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnOnce(std::io::Error)` closure, found `FileSystem::FileSystemError`
[INFO] [stdout]     |                                                             |
[INFO] [stdout]     |                                                             required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] help: the trait `FnOnce(std::io::Error)` is not implemented for `FileSystem::FileSystemError`
[INFO] [stdout]    --> src/FileSystem.rs:8:1
[INFO] [stdout]     |
[INFO] [stdout]   8 | enum FileSystemError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: required by a bound in `Result::<T, E>::map_err`
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/result.rs:960:4
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:265:29
[INFO] [stdout]     |
[INFO] [stdout] 263 |                     if let Some(parent_weak) = &current.borrow().parent {
[INFO] [stdout]     |                                                 ----------------
[INFO] [stdout]     |                                                 |
[INFO] [stdout]     |                                                 `current` is borrowed here
[INFO] [stdout]     |                                                 a temporary with access to the borrow is created here ...
[INFO] [stdout] 264 |                         if let Some(parent) = parent_weak.upgrade() {
[INFO] [stdout] 265 |                             current = parent;
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] 266 |                         }
[INFO] [stdout] 267 |                     }
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/alloc/src/rc.rs:2431:4
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:272:29
[INFO] [stdout]     |
[INFO] [stdout] 270 |                     if let FSItem::Directory(ref dir) = current.borrow().item {
[INFO] [stdout]     |                                                         ----------------
[INFO] [stdout]     |                                                         |
[INFO] [stdout]     |                                                         `current` is borrowed here
[INFO] [stdout]     |                                                         a temporary with access to the borrow is created here ...
[INFO] [stdout] 271 |                         if let Some(child) = dir.items.get(name) {
[INFO] [stdout] 272 |                             current = child.clone();
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] ...
[INFO] [stdout] 276 |                     } else {
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/alloc/src/rc.rs:2431:4
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 278 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0506, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `LAB05` (bin "LAB05") due to 5 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:265:29
[INFO] [stdout]     |
[INFO] [stdout] 263 |                     if let Some(parent_weak) = &current.borrow().parent {
[INFO] [stdout]     |                                                 ----------------
[INFO] [stdout]     |                                                 |
[INFO] [stdout]     |                                                 `current` is borrowed here
[INFO] [stdout]     |                                                 a temporary with access to the borrow is created here ...
[INFO] [stdout] 264 |                         if let Some(parent) = parent_weak.upgrade() {
[INFO] [stdout] 265 |                             current = parent;
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] 266 |                         }
[INFO] [stdout] 267 |                     }
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/alloc/src/rc.rs:2431:4
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 267 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0506]: cannot assign to `current` because it is borrowed
[INFO] [stdout]    --> src/FileSystem.rs:272:29
[INFO] [stdout]     |
[INFO] [stdout] 270 |                     if let FSItem::Directory(ref dir) = current.borrow().item {
[INFO] [stdout]     |                                                         ----------------
[INFO] [stdout]     |                                                         |
[INFO] [stdout]     |                                                         `current` is borrowed here
[INFO] [stdout]     |                                                         a temporary with access to the borrow is created here ...
[INFO] [stdout] 271 |                         if let Some(child) = dir.items.get(name) {
[INFO] [stdout] 272 |                             current = child.clone();
[INFO] [stdout]     |                             ^^^^^^^ `current` is assigned to here but it was already borrowed
[INFO] [stdout] ...
[INFO] [stdout] 276 |                     } else {
[INFO] [stdout]     |                     - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Ref<'_, FSnode>`
[INFO] [stdout]     |
[INFO] [stdout]     = note: borrow occurs due to deref coercion to `RefCell<FSnode>`
[INFO] [stdout] note: deref defined here
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/alloc/src/rc.rs:2431:4
[INFO] [stdout] help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
[INFO] [stdout]     |
[INFO] [stdout] 278 |                     };
[INFO] [stdout]     |                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0506, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `LAB05` (bin "LAB05" test) due to 5 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d", kill_on_drop: false }`
[INFO] [stdout] 1fdb3094885d3a49451f9d92ecc13230a692d6d1d411a484d26bb648efc0746d
